package com.bao.ww;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-13
 * Time: 23:29
 */
class Student {
        public String name;

    static {
        System.out.println("Student::static");
    }
    {
        System.out.println("实例化代码实现");
    }
    public Student(String name) {
        this.name = name;
        System.out.println("构造方法实现");
    }
}
public class Test {
    public static void main(String[] args) {
        Student student = new Student("xiaowang");
        System.out.println("================");
        Student student1 = new Student("wangss");
    }
}
